using System;
using System.Collections.Generic;
using System.Text;
using ElteIk.RoboSoccer.Core.Physics;

namespace ElteIk.RoboSoccer.Core.PhysicsEngine
{
    /// <summary>
    /// A helper class to store exact informations about the collision.
    /// </summary>
    class CollisionInfo
    {
        private IPhysicalObject a;

        public IPhysicalObject A
        {
            get { return a; }
            set { a = value; }
        }

        private IPhysicalObject b;

        public IPhysicalObject B
        {
            get { return b; }
            set { b = value; }
        }

        private float time;

        public float Time
        {
            get { return time; }
            set { time = value; }
        }

        private Vector2D position;

        public Vector2D Position
        {
            get { return position; }
            set { position = value; }
        }
	
        public CollisionInfo(IPhysicalObject a, IPhysicalObject b, Vector2D position, float time)
        {
            this.a = a;
            this.b = b;
            this.time = time;
            this.position = position;
        }	
    }
}
